package com.patMall.mapper;

import com.patMall.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User row);

    User selectByPrimaryKey(Integer userId);

    List<User> selectAll();

    int updateByPrimaryKey(User row);
    List<User> selectUser(String username);
    User selectUsername(String username);
    List<User> selectAllByUsername(@Param("role") String role,@Param("username") String username,@Param("count") int count);
    List<User> selectAllByIdCard(String idCard);
    List<User> selectAllByPhone(String phone);
    List<User> selectAllUserRole(@Param("role") String role,@Param("count") int count);
    User selectStoreUser(Integer storeId);
}